namespace ghost {
	/**公共配置，此处暂时无用**/
	export class PublicVar {
		public static skillKey:number[];
		public static hpInterval:number;	
		public static init() {			
			let s = this;
			PublicVar.skillKey=[
				Laya.Keyboard.H,
				Laya.Keyboard.Y,
				Laya.Keyboard.U,
				Laya.Keyboard.I,
				Laya.Keyboard.K,
				Laya.Keyboard.O,
				Laya.Keyboard.L,
				Laya.Keyboard.P,
				Laya.Keyboard.A,Laya.Keyboard.S,Laya.Keyboard.W,Laya.Keyboard.D,//左下上右
				Laya.Keyboard.J,
				Laya.Keyboard.SPACE];
			PublicVar.hpInterval = 128;
		}
		/**获取A相对于B的阵营类型1-自己 2-友军 4-敌军*/
		public static getCampFlag(idA:number, campA:number, idB:number, campB:number):number
		{			
			if(idA == idB)
				return 1;
			if(campA == campB)
				return 2;
			return 4;
		}
		/**获取A相对于B的阵营索引0-自己 1-友军 2-敌军*/
		public static getCampFlagIndex(idA:number, campA:number, idB:number, campB:number):number
		{			
			if(idA == idB)
				return 0;
			if(campA == campB)
				return 1;
			return 2;
		}
	}
}